<?php

class m_medias_documents_ParameterBase extends f_document_BaseDocument
{

	private $folderId;
	private $generateOnUpload;
	private $width;
	private $height;
	private $crop;

	public function __construct($id = null, $lang = null)
	{
		parent::__construct($id, null, $lang);
	}

	public function getTableName()
	{
		return "m_medias__parameter";
	}

	public function getDocumentModel()
	{
		return "modules_medias/parameter";
	}
	
	protected function getFieldsBag()
	{
		return array('document_id', 			'document_uid', 			'document_model', 			'document_author', 			'document_creationdate', 			'document_modificationdate', 			'document_publicationstatus', 			'document_lang', 			'document_revision', 			'document_startpublicationdate', 			'document_endpublicationdate', 			'document_label', 			'folderId', 			'generateOnUpload', 			'width', 			'height', 			'crop');
	}

	public function getdefaultPublicationstatus()
	{
		return "PUBLISHED";
	}

	/**
	 * @return boolean
	 */
	public function isRevisable()
	{
		return false;
	}
	
	/**
	 * @return boolean
	 */
	public function isLocalized()
	{
		return false;
	}	
	
    /**
	 * @return boolean
	 */
	public function isRecursive()
	{
		return $this->isRecursive;
	}
	
	/**
	 * @param boolean $value
	 * @return m_medias_documents_ParameterBase
	 */	
	public function setIsRecursive($value)
	{
		$this->isRecursive = $value;
	}
		
	/**
	 * @return integer
	 */
	public function getFolderId()
	{
		return $this->folderId;
	}

	/**
	 * @param integer $value
	 * @return m_medias_documents_Parameter
	 */
	public function setFolderId($value)
	{
		$this->folderId = $value;
		return $this;
	}
	/**
	 * @return boolean
	 */
	public function isGenerateOnUpload()
	{
		return $this->generateOnUpload;
	}

	/**
	 * @param boolean $value
	 * @return m_medias_documents_Parameter
	 */
	public function setGenerateOnUpload($value)
	{
		if(!is_bool((bool)$value)) throw new Exception("Value $value for m_medias_documents_Parameter->setGenerateOnUpload is not a boolean");
		$this->generateOnUpload = $value;
		return $this;
	}
	/**
	 * @return integer
	 */
	public function getWidth()
	{
		return $this->width;
	}

	/**
	 * @param integer $value
	 * @return m_medias_documents_Parameter
	 */
	public function setWidth($value)
	{
		$this->width = $value;
		return $this;
	}
	/**
	 * @return integer
	 */
	public function getHeight()
	{
		return $this->height;
	}

	/**
	 * @param integer $value
	 * @return m_medias_documents_Parameter
	 */
	public function setHeight($value)
	{
		$this->height = $value;
		return $this;
	}
	/**
	 * @return integer
	 */
	public function getCrop()
	{
		return $this->crop;
	}

	/**
	 * @param integer $value
	 * @return m_medias_documents_Parameter
	 */
	public function setCrop($value)
	{
		$this->crop = $value;
		return $this;
	}
	public function relationFields()
	{
		return array();
	}
	


}